package com.liu.constant;

import org.springframework.transaction.TransactionUsageException;

/**
 * @ClassName Constants
 * @Author liuxin
 * @Date Created in 2023-01-16 22:12
 * @Version 1.0
 */

public class Constants {
    //统一token前缀

    public static final String TOKEN_PREFIX = "token:";
    //权限请求头
    public static final String TOKEN_AUTHORIZATION="authorization";
    //token的过期时间

    public static final Long TOKEN_TIME = 24*60*60L;

    //这里当一个过滤器开关，开发用

    public static final boolean DEBUG_INTERCEPTOR= false;
    //角色前缀

    public static final String ROLE_PREFIX = "roles: ";
    //权限前缀

    public static final String PERM_PREFIX = "perm: ";
    //防止重复提交的key前缀
    public static final String REPEAT_SUBMIT_KEY = "repeat:";
}
